<?php

$textTpl = "<xml>
            <ToUserName><![CDATA[$postObj->FromUserName]]></ToUserName>
            <FromUserName><![CDATA[$postObj->ToUserName]]></FromUserName>
            <CreateTime>".time()."</CreateTime>
            <MsgType><![CDATA[text]]></MsgType>
            <Content><![CDATA[%s]]></Content>
            <FuncFlag>0</FuncFlag>
             </xml>";   
$newsTpl = "<xml>
           <ToUserName><![CDATA[$postObj->FromUserName]]></ToUserName>
           <FromUserName><![CDATA[$postObj->ToUserName]]></FromUserName>
           <CreateTime>".time()."</CreateTime>
           <MsgType><![CDATA[news]]></MsgType>
           <ArticleCount>%s</ArticleCount>
           <Articles>
           <item>
           <Title><![CDATA[%s]]></Title> 
           <Description><![CDATA[%s]]></Description>
           <PicUrl><![CDATA[%s]]></PicUrl>
           <Url><![CDATA[%s]]></Url>
           </item>
           </Articles>
           <FuncFlag>1</FuncFlag>
           </xml> ";
$musicTpl = "<xml>
             <ToUserName><![CDATA[$postObj->FromUserName]]></ToUserName>
             <FromUserName><![CDATA[$postObj->ToUserName]]></FromUserName>
             <CreateTime>".time()."</CreateTime>
             <MsgType><![CDATA[music]]></MsgType>
             <Music>
             <Title><![CDATA[%s]]></Title>
             <Description><![CDATA[%s]]></Description>
             <MusicUrl><![CDATA[%s]]></MusicUrl>
             </Music>
             <FuncFlag>0</FuncFlag>
             </xml>";



$imageTpl="<xml>
			<ToUserName><![CDATA[$postObj->FromUserName]]></ToUserName>
 			<FromUserName><![CDATA[$postObj->ToUserName]]></FromUserName>
 			<CreateTime>".time()."</CreateTime>
 			<MsgType><![CDATA[news]]></MsgType>
 			<ArticleCount>1</ArticleCount>
            
 			<Articles>
 			<item>
 			<Title><![CDATA[%s]]></Title> 
 			<Description><![CDATA[%s]]></Description>
 			<PicUrl><![CDATA[%s]]></PicUrl>
         
 			<Url><![CDATA[%s]]></Url> 
         	</item>
 			</Articles>
 			</xml> ";
?>
